package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 医院信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class HispitalInsertRequestDTO extends BaseRequestDTO {

    /**
     * 医院名称
     *
     * @mbggenerated
     */
    @ApiParam(value = "医院名称",required = true)
    @NotNull
    private String name;

    /**
     * 代码
     *
     * @mbggenerated
     */
    @ApiParam(value = "医院代码",required = true)
    @NotNull
    private String code;


    /**
     * 省
     *
     * @mbggenerated
     */
    @ApiParam(value = "省",hidden = true)
    @NotNull
    private String province = "重庆";

    /**
     * 市
     *
     * @mbggenerated
     */
    @ApiParam(value = "市",hidden = true)
    @NotNull
    private String city = "重庆市";

    /**
     * 区
     *
     * @mbggenerated
     */
    @ApiParam(value = "区",hidden = true)
    @NotNull
    private String district;

    /**
     * 省ID
     *
     * @mbggenerated
     */
    @ApiParam(value = "省id",hidden = true)
    @NotNull
    private Long provinceId = 2L;

    /**
     * 市ID
     *
     * @mbggenerated
     */
    @ApiParam(value = "城市id",hidden = true)
    @NotNull
    private Long cityId = 101L;

    /**
     * 区ID
     *
     * @mbggenerated
     */
    @ApiParam(value = "区域id",required = true)
    @NotNull
    private Long districtId;


    public void valid(){

        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
